﻿<%@ Page Title="医疗机构汇总统计(低值)" Language="C#" MasterPageFile="~/Master/MasterPage_New.master" 
    AutoEventWireup="true" CodeBehind="HospitalStatistics_DZ.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.NewReport.HospitalStatistics_DZ" %>

<%@ Register Src="~/Common/AreaControls.ascx" TagName="AreaControl" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li><a href="HospitalStatistics.aspx">医疗机构汇总统计(高值)</a></li>
            <li class="active"><a href="#">医疗机构汇总统计(低值)</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                <asp:Label ID="lblHospital" runat="server" Text="医院名称："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtHospital" runat="server"></asp:TextBox>
                            </td>
<%--                            <td align="right">
                                <asp:Label ID="lblStartTime" runat="server" Text="开始时间："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtTimeFrom" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblEndTime" runat="server" Text="结束时间："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtTimeTo" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
                            </td>--%>
                         <td align="right">
                                <asp:Label ID="lblStartTime" runat="server" Text="时间："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtStratTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM',readOnly:true})"
                                    Width="63px"></asp:TextBox>-<asp:TextBox ID="txtEndTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM',readOnly:true})"
                                        Width="63px"></asp:TextBox>
                            </td>

                        </tr>
                        <tr class="ltlAdvance">
                            <td align="right">
                                所在地区：
                            </td>
                            <td align="left"> 
                                <uc3:AreaControl ID="ddlArea"  runat="server"/>
                            </td>
                            <td align="right">
                                排序字段：
                            </td>
                            <td style="text-align: left">
                                <asp:DropDownList ID="OrderFileds" runat="server" Width="126px">
                                    <asp:ListItem Value="PurchaseAmount">采购金额(元)</asp:ListItem>
                                    <asp:ListItem Value="DistributeAmount">配送金额(元)</asp:ListItem>
                                    <asp:ListItem Value="WarehouseAmount">入库金额(元)</asp:ListItem>
<%--                                    <asp:ListItem Value="ReturnAmount">退货金额(元)</asp:ListItem>--%>
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                排序方式：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="OrderType" runat="server" Width="126px">
                                    <asp:ListItem Value="DESC">降序</asp:ListItem>
                                    <asp:ListItem Value="ASC">升序</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
<%--                        <tr>
                            <td align="right">
                                是否国产：
                            </td>
                            <td align="left">
                            <asp:DropDownList ID="ddlIsGuoChan" runat="server">
                                <asp:ListItem Value="全部">全部</asp:ListItem>
                                <asp:ListItem Value="0">否</asp:ListItem>
                                <asp:ListItem Value="1">是</asp:ListItem>
                            </asp:DropDownList>
                            </td>
                        </tr>--%>
                    </table>
                </td>
                <td width="100px">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查  询" OnClick="btnQuery_Click" CssClass="btn" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwInfo" runat="server" EmptyDataText="暂无符合条件的数据！" AutoGenerateColumns="False"
        CssClass="mainlist" DataKeyNames="HospitalID,HospitalName" OnRowCommand="gvwInfo_RowCommand">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="rowno" HeaderText="序号" Visible="false" />
            <asp:BoundField DataField="HospitalName" HeaderText="医院名称" />
<%--            <asp:TemplateField HeaderText="订单金额">
                <ItemTemplate>
                    <hz:HzLinkButton ID="lbnP" runat="server" CommandName="lbnP" CausesValidation="True"
                        CommandArgument='<%#Eval("HospitalID")+ "|"+ Eval("HospitalName") %>' Text='<%# Eval("PurchaseAmount") %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="响应金额">
                <ItemTemplate>
                    <hz:HzLinkButton ID="lbnCR" runat="server" CommandName="lbnCR" CausesValidation="True"
                        CommandArgument='<%#Eval("HospitalID")+ "|"+ Eval("HospitalName") %>' Text='<%#Eval("ComResonseAmount")%>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="配送金额">
                <ItemTemplate>
                    <hz:HzLinkButton ID="lbnD" runat="server" CommandName="lbnD" CausesValidation="True"
                        CommandArgument='<%#Eval("HospitalID")+ "|"+ Eval("HospitalName") %>' Text='<%#Eval("DistributeAmount")%>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="入库金额">
                <ItemTemplate>
                    <hz:HzLinkButton ID="lbnW" runat="server" CommandName="lbnW" CausesValidation="True"
                        CommandArgument='<%#Eval("HospitalID")+ "|"+ Eval("HospitalName") %>' Text='<%#Eval("WarehouseAmount")%>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="退货金额" Visible="False">
                <ItemTemplate>
                    <hz:HzLinkButton ID="lbnR" runat="server" CommandName="lbnR" CausesValidation="True"
                        CommandArgument='<%#Eval("HospitalID") %>' Text='<%#Eval("ReturnAmount")%>' />
                </ItemTemplate>
            </asp:TemplateField>--%>
            <asp:BoundField DataField="PurchaseAmount" HeaderText="订单金额" Visible="true" />
            <asp:BoundField DataField="ComResonseAmount" HeaderText="响应金额" Visible="true" />
            <asp:BoundField DataField="DistributeAmount" HeaderText="配送金额" Visible="true" />
            <asp:BoundField DataField="WarehouseAmount" HeaderText="入库金额" Visible="true" />
<%--            <asp:BoundField DataField="SellAmount" HeaderText="销售金额" Visible="false" />
            <asp:BoundField DataField="ReturnAmount" HeaderText="退货金额" Visible="false" />--%>
        </Columns>
    </asp:GridView>
    <div class="page">
        <span style="width: 30%; float: left; text-align: left">
            <hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" />&nbsp;&nbsp;
            <hz:HzButton ID="btnPrint" runat="server" CssClass="btn" Text="打印数据" Visible="false"
                OnClick="btnPrint_Click" />
            <hz:HzButton ID="btnPrintBook" runat="server" CssClass="btn" Visible="false" Text="打印催缴通知书"
                OnClick="btnPrintBook_Click" Width="100px" />
        </span><span style="width: 70%; float: right; text-align: right">
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged"
                AlwaysShow="true">
            </webdiyer:AspNetPager>
        </span>
    </div>
    <div class="listip">
        <ul>
            <li>统计:<asp:Label ID="lblCount" runat="server"></asp:Label>
            </li>
        </ul>
    </div>
</asp:Content>
